﻿@model TGBTech.Core.Models.ChungTu.Data

@{
    ViewBag.Title = "Edit";
}

<div class="row">
    <div class="col-md-6">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption">
                    Thêm tài khoản
                </div>
                <div class="tools">
                    <a href="" class="collapse"></a>
                    <a href="" class="reload"></a>
                </div>
            </div>
            <div class="portlet-body">
                @using (Html.BeginForm())
                {
                    @Html.AntiForgeryToken()

                    <div class="form-horizontal">
                        @Html.ValidationSummary(true)

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số chứng từ</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoCT, new { @class = "form-control", placeholder = "Số chứng từ" })
                                @Html.ValidationMessageFor(model => model.SoCT)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Ngày chứng từ</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.NgayCT, new { @class = "form-control", placeholder = "Ngày chứng từ" })
                                @Html.ValidationMessageFor(model => model.NgayCT)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Nợ</label>
                            <div class="col-md-7">
                                @Html.DropDownList("TaiKhoanNoId", null, new { @class = "form-control select2me" })
                                @Html.ValidationMessageFor(model => model.TaiKhoanNoId)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Diễn giải nợ</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.DienGiaiNo, new { @class = "form-control", placeholder = "Diễn giải nợ" })
                                @Html.ValidationMessageFor(model => model.DienGiaiNo)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Có</label>
                            <div class="col-md-7">
                                @Html.DropDownList("TaiKhoanCoId", null, new { @class = "form-control select2me" })
                                @Html.ValidationMessageFor(model => model.TaiKhoanCoId)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Diễn giải có</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.DienGiaiCo, new { @class = "form-control", placeholder = "Diễn giải có" })
                                @Html.ValidationMessageFor(model => model.DienGiaiCo)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Khách hàng</label>
                            <div class="col-md-7">
                                @Html.DropDownList("KhachHangId", null, new { @class = "form-control select2me" })
                                @Html.ValidationMessageFor(model => model.KhachHangId)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Loại KH</label>
                            <div class="col-md-7">
                                @Html.EditorFor(model => model.LoaiKH)
                                @Html.ValidationMessageFor(model => model.LoaiKH)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số tiền</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoTien, new { @class = "form-control", placeholder = "Số tiền" })
                                @Html.ValidationMessageFor(model => model.SoTien)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số hiệu </label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoHieu, new { @class = "form-control", placeholder = "Số hiệu hóa đơn" })
                                @Html.ValidationMessageFor(model => model.SoHieu)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số hóa đơn</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoHoaDon, new { @class = "form-control", placeholder = "Số hóa đơn" })
                                @Html.ValidationMessageFor(model => model.SoHoaDon)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Ngày hóa đơn</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.NgayHoaDon, new { @class = "form-control", placeholder = "Ngày hóa đơn" })
                                @Html.ValidationMessageFor(model => model.NgayHoaDon)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Danh mục</label>
                            <div class="col-md-7">
                                @Html.DropDownList("DanhMucId", null, new { @class = "form-control select2me" })
                                @Html.ValidationMessageFor(model => model.DanhMucId)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">VAT</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.VAT, new { @class = "form-control", placeholder = "VAT" })
                                @Html.ValidationMessageFor(model => model.VAT)
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-9">
                                @Html.ActionLink("Trở về", "Index", null, new { @class = "btn default" })
                                <input type="submit" value="Cập nhật" class="btn blue" />
                            </div>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>